"""
try:
    先执行try
"""

aa = ['fd','222','fdsahua','fea']
neu = input('请输入要查询的下标')
try:
    bb =int(neu)
    print(f'您输入的下标为{neu}的元素为{aa[bb]}')
except ValueError as e:
    print('出错了，下标为整数')
except IndexError as e:
    print('长度不合法')

